/* 覆盖默认的Markdown样式，确保内容区域始终为亮色 */
.markdown-body {
  background-color: #ffffff !important;
  color: #333333 !important;
}

/* 覆盖prismjs的暗色主题样式 */
code[class*='language-'],
pre[class*='language-'] {
  background: #f8f8f8 !important;
  color: #333333 !important;
}

/* 确保页面主要内容区域始终为亮色 */
.content-wrapper,
.main-container,
.main {
  background-color: #ffffff !important;
}

/* 侧边栏样式 */
.sidebar {
  background-color: #ffffff !important;
}

/* TOC目录样式 */
.toc {
  background-color: #ffffff !important;
}

/* 确保文本颜色始终可读 */
.markdown-body a {
  color: #0366d6 !important;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  color: #24292e !important;
}

/* 确保表格样式正确 */
.markdown-body table {
  background-color: #ffffff !important;
}

.markdown-body tr:nth-child(2n) {
  background-color: #f6f8fa !important;
}
